apiVersion: v1
kind: Service
metadata:
  name: hello-k8s
  namespace: demo
spec:
  ports:
  - port: 8080
    name: http
  selector:
    app: hello-k8s
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: hello-k8s
  namespace: demo
spec:
  replicas: 1
  selector:
    matchLabels:
      app: hello-k8s
  template:
    metadata:
      labels:
        app: hello-k8s
    spec:
      containers:
      - name: hello-k8s
        image: mycluster.icp:8500/demo/hello-k8s:1.0.0
        ports:
        - containerPort: 8080
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
 name: hello-k8s
 namespace: demo
spec:
  rules:
  - http:
      paths:
      - path: /
        backend:
         serviceName: hello-k8s
         servicePort: 8080
      